package com.zhang;

import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

/**
 * @title:
 * @author: zhangyifan
 * @date: 2022/6/25 16:06
 */
public class StreamXTest {
    public static void main(String[] args) throws Exception {
        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
        env.setParallelism(1);
        String jobName = args[0];

        env
                .socketTextStream("hadoop102", 9999)
                .print();


        env.execute("dws_"+jobName);
    }
}
